﻿@using MinistryStandardPlatformWeb;

<!DOCTYPE  html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>标准部标平台</title>
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/themes/project/common.css")
        @Styles.Render("~/Scripts/validationEngine/validationEngine.jquery.css")
        @Styles.Render("~/Content/themes/project/table.css")
        @Styles.Render("~/Content/themes/base/css")
        @Scripts.Render("~/bundles/modernizr")
        @Scripts.Render("~/bundles/jquery")
        @Scripts.Render("~/bundles/jqueryui")
        @Scripts.Render("~/bundles/jqueryval")

        <script src="~/Scripts/project/home.js" type="text/javascript" ></script>
        <script src="~/Scripts/jquery.ztree.all-3.5.js" type="text/javascript" >></script>
        <link type="text/css" href="~/Content/themes/zTreeStyle/zTreeStyle.css" rel="stylesheet"/>

        <script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.min.js"></script>
        <script type="text/javascript" src="~/Scripts/artDialog/jquery.artDialog.js?skin=green"></script>
        <script type="text/javascript" src="~/Scripts/artDialog/plugins/iframeTools.js"></script>
        <script type="text/javascript" src="~/Scripts/project/artDialog.js"></script>
        <script type="text/javascript" src="~/Scripts/project/commonajax.js"></script>
        <script type="text/javascript" src="~/Scripts/jquery.json-2.4.min.js"></script>
        <script src="~/Scripts/project/table.js" type="text/javascript" ></script>
        <script src="~/Scripts/My97DatePicker/WdatePicker.js"  type="text/javascript"></script>
        <link type="text/css" href="~/Scripts/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Scripts/jquery-ui-1.8.20.min.js"></script>
<script type="text/javascript" src="~/Scripts/TimePicker/jquery-ui-timepicker-addon.js"></script>

    </head>
    <body>
        @*<header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("将你的徽标放置在此处", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("主页", "Index", "Home")</li>
                            <li>@Html.ActionLink("关于", "About", "Home")</li>
                            <li>@Html.ActionLink("联系方式", "Contact", "Home")</li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>*@
        <div id="mainbox" style="width:100%;">
        <div id="topNav">
            <input type="hidden" id="selectedMenu" value="@ViewContext.RouteData.Values["controller"]" />
            <ul id="topMenu">
                @if(CommonFunctions.GetLoginUser().HasMenuRight("1"))
                {
                    <li value="MonitorCenter"><span><img src="~/Images/MonitorCenter.png" alt="监控中心" /></span><span>@Html.ActionLink("监控中心", "Index", "MonitorCenter")</span></li>
                }
                @if(CommonFunctions.GetLoginUser().HasMenuRight("2"))
                {
                    <li value="DispatchCenter"><span><img src="~/Images/DispatchCenter.png" alt="调度中心" /></span><span>@Html.ActionLink("调度中心", "Index", "DispatchCenter")</span></li>
                }
                @if(CommonFunctions.GetLoginUser().HasMenuRight("4"))
                {
                    <li value="ReportCenter"><span><img src="~/Images/reportsCenter.png" alt="报表中心" /></span><span>@Html.ActionLink("报表中心", "Index", "ReportCenter")</span></li>
                }
                @if(CommonFunctions.GetLoginUser().HasMenuRight("3"))
                {
                    <li value="OperationManage"><span><img src="~/Images/OperManagement.png" alt="运营管理" /></span><span>@Html.ActionLink("运营管理", "Index", "OperationManage")</span></li>
                }
                @if(CommonFunctions.GetLoginUser().HasMenuRight("5"))
                {
                    <li value="SystemManage"><span><img src="~/Images/SysManagement.png" alt="系统管理" /></span><span>@Html.ActionLink("系统管理", "Index", "SystemManage")</span></li>
                }
            </ul>
        </div>
        <div id="contentDiv" class="fillparentheight">
            @*@RenderSection("featured", required: false)*@
            @*<section class="content-wrapper main-content clear-fix">
                
            </section>*@
            @RenderBody() 
        </div>

        <div id="buttomDiv" >
            <span style="margin-left:10px">当前用户：<label id="useridlb">@CommonFunctions.GetLoginUser().UserId</label></span>
            <span >,所属单位：@CommonFunctions.GetLoginUser().UnitName</span>
            <span>,登录时间：@DateTime.Now.ToString()</span>
            <span style="float:right;">@Html.ActionLink("退出登录","Logout","Login")</span>
        </div>
        </div>
        @*@Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)*@
    </body>
</html>
